package com.chpro.finance.accountmanager.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.chpro.finance.accountmanager.entity.BankAccount;
import com.chpro.finance.accountmanager.service.BankAccountService;
import com.chpro.orm.hibernate.ControllerBaseImpl;
import com.chpro.orm.hibernate.ServiceBase;

@Controller(value="bankAccountController")
@RequestMapping(value="BankAccountController")
public class BankAccountController extends ControllerBaseImpl<BankAccount> {

	private BankAccountService bankAccountService;
	
	@Resource(name="bankAccountServiceImpl")
	public void setBankAccountService(BankAccountService bankAccountService) {
		this.bankAccountService = bankAccountService;
	}

	@Override
	public ServiceBase<BankAccount> getDao() {
		return bankAccountService;
	}

}
